package org.kia.data.adapters;

import java.io.IOException;
import java.io.InputStream;

/**
 *
 * @author Amir Lazarovich
 */
public interface ResponseAdapter {

    public InputStream getResponseBody() throws IOException;

    public byte[] getResponseBodyAsBytes() throws IOException;

    public String getResponseBodyAsString() throws IOException;

    public int getStatusCode();

    /**
     * Returns the first header matching key value supplied.
     *
     * @param key
     * @return
     */
    public String getHeader(String key);

}
